<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<view class="title">Share</view>
			<view class="right"></view>
		</view>
		<image class="bg1" src="/static/img/bg_3.png"></image>
		<image class="bg2" src="/static/img/share_btn.png"></image>
		<image class="bg3" src="/static/img/eyes_icon.png"></image>
		<image class="bg4" src="/static/img/invite_img.png"></image>
		<view class="invit_text">After successfully registering on the pl-
atform, users can receive reward coupons</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null,
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		position: relative;
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		margin: 0rpx auto;
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 57rpx;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}
	.bg1{
		position: absolute;
		z-index: -1;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
	.bg2{
		position: absolute;
		z-index: -1;
		bottom: 230rpx;
		left: 50%;
		transform: translate(-50%,0);
		width: 468rpx;
		height: 117rpx;
	}
	.bg3{
		position: absolute;
		z-index: -1;
		top: 393rpx;
		left: 0;
		width: 77rpx;
		height: 58rpx;
	}
	.bg4{
		position: absolute;
		z-index: -1;
		top: 227rpx;
		left: 50%;
		transform: translate(-50%,0);
		width: 722rpx;
		height: 187rpx;
	}
	.invit_text{
		box-sizing: border-box;
		width: 650rpx;
		background: #77D95C;
		border-radius: 14rpx;
		padding: 28rpx 26rpx 30rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 28rpx;
		color: #1B1B1B;
		white-space: pre-wrap;
		word-wrap: break-word;
		position: absolute;
		z-index: -1;
		top: 440rpx;
		left: 50%;
		transform: translate(-50%,0);
	}
</style>